<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
	<title><?=$_SERVER['HTTP_HOST']?> &raquo; Панель управления</title>
<?
$meta = array(
        array('name' => 'robots', 'content' => 'no-cache'),
        array('name' => 'description', 'content' => 'New generation of JaguarSoft'),
        array('name' => 'keywords', 'content' => 'love, passion, intrigue, deception'),
        array('name' => 'Content-type', 'content' => 'text/html; charset=utf-8', 'type' => 'equiv')
    );

echo meta($meta);
?>
	<link rel="stylesheet" href="/data/css/cssf-base.css" type="text/css" media="screen" />
	<!--[if lte IE 6]><link rel="stylesheet" href="/data/css/cssf-ie6.css" type="text/css" media="screen" /><![endif]-->
	<!--[if IE 7]><link rel="stylesheet" href="/data/css/cssf-ie7.css" type="text/css" media="screen" /><![endif]-->
	<script type="text/javascript" src="/data/js/iepngfix_tilebg.js"></script>
	<link rel="stylesheet" href="/data/css/smoothness/jquery-ui-1.8.13.custom.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="/data/css/jquickform.admin.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="/data/css/uploadify.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="/data/css/prettyPhoto.css" type="text/css" media="screen" />
	<link rel="stylesheet" href="/data/css/admin.css" type="text/css" media="screen" />
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
	<script type="text/javascript" src="http://cdn.jquerytools.org/1.2.5/all/jquery.tools.min.js"></script>
	<script type="text/javascript" src="/data/js/jquery-ui-1.8.13.custom.min.js"></script>
	<script type="text/javascript" src="/data/js/jquery.maskedinput-1.3.min.js"></script>
	<script type="text/javascript" src="/data/js/swfobject.js"></script>
	<script type="text/javascript" src="/data/js/jquery.uploadify.v2.1.4.min.js"></script>
	<script type="text/javascript" src="/data/js/jquery.prettyPhoto.js"></script>
	<script type="text/javascript" src="/data/js/admin.js"></script>
	<script type="text/javascript">
		jQuery(document).ready(function($){
			$.ajax({
			  url: '/data/js/fckeditor/index.html',
			  username: 'root',
			  password: 'pass',
			  cache: 'false',
			  async: 'false',
			  success: function() {
					$.ajax({
					  url: '/data/js/fckeditor/fckeditor.js',
					  dataType: "script",
					  cache: 'false',
					  async: 'false',
					  success: function() {
						loadFCK();
					  }
					});
			  }
		  });
		});
	</script>
</head>
<body>
	<noscript>
		<div class="js_alert"><div class="wrap"><?=showmesplash('Для работы, в браузере должен быть включен JavaScript', 'error')?></div></div>
	</noscript>
<div class="ajax_work"><img src="/data/images/ajax.gif" alt="Я думаю!" title="Я думаю!" /></div>
<div class="toppanel">
	<div class="wrap">
	<div class="fl">
		Здравствуйте, <?=$this->ion_auth->profile()->first_name?> <?=$this->ion_auth->profile()->last_name?>.
	</div>
	<div style="margin: 0 0 0 20px; float: left;">
		<a href="/" target="_blank">Перейти на сайт</a>
		<a href="/admin/">Главная ЦУПа</a>
		<?
			echo $this->crumps->show();
		?>
	</div>
		<div class="fr">
<!--			<a href="/auth/change_password/">Изменить пароль</a>
			<a href="#">Изменить профиль</a>-->
			<a href="/auth/logout/">Выйти</a>
		</div>
	</div>
</div>
<div class="holder"></div>
<div class="header shadow">
	<div class="logo">
		<?=$this->config->item('company_name')?>
	</div>
	<div class="subheader">Панель управления сайтом</div>
</div>
<div class="cols">
	<div class="layout">
		<div class="left-col br-10 shadow">
			<div class="wrap">
				<ul class="left-menu">
					<li class="br-11-top"><a href="/admin/content/" class='<?=($this->uri->segment(2) == "content"?"active":"")?>'>Простые страницы</a></li>
					<li><a href="/admin/news/" class='<?=($this->uri->segment(2) == "news"?"active":"")?>'>Новости</a></li>
					<li><a href="/admin/pg/" class='<?=($this->uri->segment(2) == "pg"?"active":"")?>'>Фотогалереи</a></li>
					<li><a href="/admin/feedback/" class='<?=($this->uri->segment(2) == "feedback"?"active":"")?>'>Обратная связь</a></li>
					<!--<li><a href="/admin/faq/" class='<?=($this->uri->segment(2) == "faq"?"active":"")?>'>Вопрос ответ</a></li>-->
					<li><a href="/admin/catalog/" class='<?=($this->uri->segment(2) == "catalog"?"active":"")?>'>Каталог товаров</a>
						<ul>
							<li><a href="/admin/brands/" class='<?=($this->uri->segment(2) == "brands"?"active":"")?>'>Бренды</a></li>
						<li><a href="/admin/catalog_import/" class='<?=($this->uri->segment(2) == "catalog_import"?"active":"")?>'>Импорт товаров</a></li>
							<li><a href="/admin/orders/?from=0&status=1" class='<?=($this->uri->segment(2) == "orders"?"active":"")?>'>Заказы (<?=$this->basket_model->new_orders()?>)</a></li>
							<li><a href="/admin/clients/" class='<?=($this->uri->segment(2) == "clients"?"active":"")?>'>Покупатели</a></li>
							<!--<li><a href="/admin/discount/" class='<?=($this->uri->segment(2) == "discount"?"active":"")?>'>Скидки</a></li>-->
							<li><a href="/admin/opinions/" class='<?=($this->uri->segment(2) == "opinions"?"active":"")?>'>Мнения</a></li>
						</ul>
					</li>
					<li><a href="/admin/users/" class='<?=($this->uri->segment(2) == "users"?"active":"")?>'>Администраторы</a>
						<ul>
							<li><a href="/admin/users_groups/" class='<?=($this->uri->segment(2) == "users_groups"?"active":"")?>'>Группы</a></li>
							<li><a href="/admin/users_rights/" class='<?=($this->uri->segment(2) == "users_rights"?"active":"")?>'>Права доступа</a></li>
						</ul>
					</li>
<!--					<li><a href="/admin/polls/" class='<?=($this->uri->segment(2) == "polls"?"active":"")?>'>Голосования</a></li>-->
<!--					<li><a href="/admin/slider/" class='<?=($this->uri->segment(2) == "slider"?"active":"")?>'>Баннеры на главной</a></li>-->
					<li><a href="/admin/config/" class='<?=($this->uri->segment(2) == "config"?"active":"")?>'>Конфигурация</a></li>
				</ul>
			</div>
		</div>
		<div class="center-col br-10 shadow">
			<div class="wrap">
				<div class="content">
					<?
					showmesplash($this->session->flashdata('msg'), 'msg');
					showmesplash($this->session->flashdata('error'), 'error');
					?>
					<?=$content_for_layout?>
				</div><!-- #page -->
			</div>
		</div>
		<div class="cc"></div>
	</div>
</div>
<div class="footer shadow-up">
	<div class="wrap">
		Панель управления сайтом v2.0
		<div class="fr">&copy; 2010-<?=date("Y")?> <a href='http://jaguarsoft.ru/' target="_blank">ЯгуарСофт</a></div>
	</div>
</div>
<input type="hidden" id="uploaded" value="0" />
<? if ($js != "") echo $js; ?>
<div class="simple_overlay" id="over_1"></div>
</body>
</html>

